Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/tracker: add missed participation counter #2075

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Apr 10, 2023

Adds a missed participation by peer counter so that we can calculate duty participation % per peer and so we can highlight missed participations instead of only successful participations.

category: misc
ticket: #2034

@@ -672,8 +672,8 @@ func newParticipationReporter(peers []p2p.Peer) func(context.Context, core.Duty,
// Initialise participation metrics to 0 to avoid non-existent metrics issue on startup.
for _, duty := range core.AllDutyTypes() {
for _, peer := range peers {
participationCounter.WithLabelValues(duty.String(), peer.Name).Add(0)
participationGauge.WithLabelValues(duty.String(), peer.Name).Set(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dB2510 setting participationGauge to 0 on startup means all peers start a "not participation" which is incorrect since the node didn't have to participate yet, so it hasn't missed or failed participating.

@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.02 ⚠️

Comparison is base (290f9ea) 53.34% compared to head (def0666) 53.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2075      +/-   ##
==========================================
- Coverage   53.34%   53.33%   -0.02%     
==========================================
  Files         174      174              
  Lines       22604    22605       +1     
==========================================
- Hits        12059    12056       -3     
- Misses       9040     9042       +2     
- Partials     1505     1507       +2     
Impacted Files Coverage Δ
core/tracker/tracker.go 76.77% <50.00%> (-0.19%) ⬇️

... and 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The new participationSuccess counter needs to be added to simnet dashboard

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Apr 10, 2023
@obol-bulldozer obol-bulldozer bot merged commit ee11175 into main Apr 10, 2023
@obol-bulldozer obol-bulldozer bot deleted the corver/missedparticipation branch April 10, 2023 12:01
LukeHackett12 pushed a commit that referenced this pull request Apr 11, 2023
Adds a `missed participation by peer` counter so that we can calculate `duty participation % per peer` and so we can highlight missed participations instead of only successful participations.

category: misc
ticket: #2034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants